<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="design/styly.jsp" />
<title>Admin - úprava uživatele</title>
</head>
<body><jsp:include page="design/hlavicka.jsp" />
<div id="menu">
<p><a href="adminHome" >Správa dílů</a>
<a href="adminStitek">Správa štítků</a>
<a href="adminUzivatel" >Správa uživatelů</a>
<em class="right">Je spuštěn administrátorský mod !</em>
</p>
</div>
<h1>Upravit uživatele</h1>
<h3>${uzivatel.jmeno}  ${uzivatel.prijmeni}  ${uzivatel.login}  ${uzivatel.skupina}</h3>

<form:form commandName="uzivatelForm" action="adminUpravUzivatel">
<form:hidden path="id"/>
<form:hidden path="oldPass"/>
<form:label path="jmeno">Jméno: </form:label>
<form:input path="jmeno" />
<form:errors path="jmeno" cssClass="error" /><br />
<form:label path="prijmeni">Příjmení: </form:label>
<form:input path="prijmeni" />
<form:errors path="prijmeni" cssClass="error" /><br />
<form:label path="login">Login: </form:label>
<form:input path="login" />
<form:errors path="login" cssClass="error" /><br />
<form:label path="heslo">Heslo: </form:label>
<form:input path="heslo" />
<form:errors path="heslo" cssClass="error" /><br />
<form:label path="skupina">Skupina</form:label>
<form:select path="skupina"> <form:options items="${skupiny}"/></form:select>
<form:errors path="skupina" cssClass="error" /><br />
<input type="submit" value="Uprav"/>
</form:form>

</body>
</html>